﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C17 RID: 3095
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MuseumFundsChangedScNotify : IMessage<MuseumFundsChangedScNotify>, IMessage, IEquatable<MuseumFundsChangedScNotify>, IDeepCloneable<MuseumFundsChangedScNotify>, IBufferMessage
	{
		// Token: 0x17002700 RID: 9984
		// (get) Token: 0x06008A5D RID: 35421 RVA: 0x0017020C File Offset: 0x0016E40C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MuseumFundsChangedScNotify> Parser
		{
			get
			{
				return MuseumFundsChangedScNotify._parser;
			}
		}

		// Token: 0x17002701 RID: 9985
		// (get) Token: 0x06008A5E RID: 35422 RVA: 0x00170213 File Offset: 0x0016E413
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MuseumFundsChangedScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002702 RID: 9986
		// (get) Token: 0x06008A5F RID: 35423 RVA: 0x00170225 File Offset: 0x0016E425
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MuseumFundsChangedScNotify.Descriptor;
			}
		}

		// Token: 0x06008A60 RID: 35424 RVA: 0x0017022C File Offset: 0x0016E42C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumFundsChangedScNotify()
		{
		}

		// Token: 0x06008A61 RID: 35425 RVA: 0x00170234 File Offset: 0x0016E434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumFundsChangedScNotify(MuseumFundsChangedScNotify other) : this()
		{
			this.coinCost_ = other.coinCost_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008A62 RID: 35426 RVA: 0x00170259 File Offset: 0x0016E459
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumFundsChangedScNotify Clone()
		{
			return new MuseumFundsChangedScNotify(this);
		}

		// Token: 0x17002703 RID: 9987
		// (get) Token: 0x06008A63 RID: 35427 RVA: 0x00170261 File Offset: 0x0016E461
		// (set) Token: 0x06008A64 RID: 35428 RVA: 0x00170269 File Offset: 0x0016E469
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CoinCost
		{
			get
			{
				return this.coinCost_;
			}
			set
			{
				this.coinCost_ = value;
			}
		}

		// Token: 0x06008A65 RID: 35429 RVA: 0x00170272 File Offset: 0x0016E472
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MuseumFundsChangedScNotify);
		}

		// Token: 0x06008A66 RID: 35430 RVA: 0x00170280 File Offset: 0x0016E480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MuseumFundsChangedScNotify other)
		{
			return other != null && (other == this || (this.CoinCost == other.CoinCost && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008A67 RID: 35431 RVA: 0x001702B0 File Offset: 0x0016E4B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CoinCost != 0U)
			{
				num ^= this.CoinCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008A68 RID: 35432 RVA: 0x001702EF File Offset: 0x0016E4EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008A69 RID: 35433 RVA: 0x001702F7 File Offset: 0x0016E4F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008A6A RID: 35434 RVA: 0x00170300 File Offset: 0x0016E500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CoinCost != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.CoinCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008A6B RID: 35435 RVA: 0x00170334 File Offset: 0x0016E534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CoinCost != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CoinCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008A6C RID: 35436 RVA: 0x00170372 File Offset: 0x0016E572
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MuseumFundsChangedScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CoinCost != 0U)
			{
				this.CoinCost = other.CoinCost;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008A6D RID: 35437 RVA: 0x001703A3 File Offset: 0x0016E5A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008A6E RID: 35438 RVA: 0x001703AC File Offset: 0x0016E5AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.CoinCost = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040034DA RID: 13530
		private static readonly MessageParser<MuseumFundsChangedScNotify> _parser = new MessageParser<MuseumFundsChangedScNotify>(() => new MuseumFundsChangedScNotify());

		// Token: 0x040034DB RID: 13531
		private UnknownFieldSet _unknownFields;

		// Token: 0x040034DC RID: 13532
		public const int CoinCostFieldNumber = 6;

		// Token: 0x040034DD RID: 13533
		private uint coinCost_;
	}
}
